
const compareChange = (detailData, itemKey) => {
  var data = {}
  if (detailData.compareChange.hasOwnProperty(itemKey)) {
    data.isChange = true
    data.oldValue = detailData?.Old[itemKey]
    data.value =
      detailData?.New[itemKey]
  } else {
    data.isChange = false
    data.oldValue = detailData?.New[itemKey]
    data.newValue = detailData?.New[itemKey]
  }
}

export default {
  compareChange
}
